import { createApp } from 'vue'
import App from './App.vue'

import router from './router'
import store from './store'

import {
  Swipe, SwipeItem,
  ActionBar, ActionBarIcon, ActionBarButton,
  SubmitBar, Checkbox, Card,
  Lazyload
} from 'vant'
import 'vant/lib/index.css'

// 解决移动端300秒延迟
import FastClick from 'fastclick'
FastClick.attach(document.body)

const loadimage = require('./assets/img/lazy/load2.jpg')

const app = createApp(App)
app.use(router)
app.use(store)
app.use(Swipe)
app.use(SwipeItem)
app.use(ActionBar)
app.use(ActionBarIcon)
app.use(ActionBarButton)
app.use(SubmitBar)
app.use(Checkbox)
app.use(Card)
app.use(Lazyload, {
  preLoad: 1.3,
  loading: loadimage
})
// app.use(Tab)
// app.use(Tabs)
app.mount('#app')
